///////////////////////////////////////////////////////////////////////////////
//
// Copyright
//
///////////////////////////////////////////////////////////////////////////////

package ru.goodcore.resource
{

import flash.utils.getClassName;

import ru.goodcore.datastructure.Enum;

/**
 * 
 * @author					Dimarik
 * @version					1.0
 * @playerversion			Flash 9
 * @langversion				3.0
 *
 * @keyword					resource, resourcemanager, resourcebehavior
 */
public class ResourceBehavior extends Enum
{

	include "../../../includes/core/Version.as";

	//-------------------------------------------------------------------------
	//
	//  Class constants
	//
	//-------------------------------------------------------------------------

	/**
	 * Defines enum constant for <b>default behavior</b>
	 */	
	public static const DEFAULT:	ResourceBehavior = new ResourceBehavior('default');

	/**
	 * Defines enum constant for <b>image behavior</b>
	 */	
	public static const IMAGE:		ResourceBehavior = new ResourceBehavior('image');

	/**
	 * Defines enum constant for <b>movie clip behavior</b>
	 */
	public static const MOVIE_CLIP:	ResourceBehavior = new ResourceBehavior('movieClip');

	/**
	 * Defines enum constant for <b>sprite sheet behavior</b>
	 */
	public static const SHEET:		ResourceBehavior = new ResourceBehavior('sheet');

	//-------------------------------------------------------------------------
	//
	//  Constructor
	//
	//-------------------------------------------------------------------------

	/**
	 * Constructor
	 */
	public function ResourceBehavior(id:String = null) {
		super(id);
	}

	//-------------------------------------------------------------------------
	//
	//  Public methods
	//
	//-------------------------------------------------------------------------

	public override function toString():String {
		var id:String = super.toString();
		return '[' + getClassName(this) + '.' + id + ']';
	}

}
}